﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace sinhvien
{
    class Program
    {
        static void Main(string[] args)
        {
            sinhvien sv = new sinhvien();

            ConsoleKeyInfo k;
            
    	
            //--- Xay dung menu ----- 

            Console.WriteLine("Quan ly sinh vien");
            Console.WriteLine();
            Console.WriteLine("An 1  : Nhap danh sach sinh vien ");
            Console.WriteLine("An 2  : Tim ");
            Console.WriteLine("An 3  : Luu ");
            Console.WriteLine("An 4  : Hien thi thong tin");
            Console.WriteLine("An ESC: Thoat ");
           	Console.WriteLine();
            do 
            { 
                Console.WriteLine();
               	Console.Write("Nhan phim: ");
                k = Console.ReadKey();

                if (k.Key == ConsoleKey.D1)
                {	
                   //Nhap
                   
                }
                else if (k.Key == ConsoleKey.D2)
                {
                  //Tim
                }
                else if (k.Key == ConsoleKey.D3)
                {
                  //Luu
                }
                 else if (k.Key == ConsoleKey.D4)
                {
                  //Hien thi
                }
                else if (k.Key == ConsoleKey.Escape)
           		{ 
                	//thoat
                	Console.Clear();
                	Console.WriteLine("See you again !");
                
                
            	}
                else
                {	 Console.WriteLine();
                	 Console.WriteLine("Nhap khong dung ki tu, xin vui long nhap lai !");
                   
                }
            }while(k.Key != ConsoleKey.Escape);
             Console.ReadKey();
               
            }
     
    }
    
    class sinhvien
    {
        
    }
}



          